Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to differentiate btw TextDoc & TextEditor #41307

Merged
merged 2 commits into from
Jan 9, 2018
Merged

Add note to differentiate btw TextDoc & TextEditor #41307

merged 2 commits into from
Jan 9, 2018

Conversation

seanpoulter
Copy link
Contributor

These are some of the things I wish I had known before using the TextDocument event listeners.

cc @jrieken, #40653

These are some of the things I wish I had known before using the
TextDocument event listeners.

cc @jrieken, #40653
*/
export const onDidOpenTextDocument: Event<TextDocument>;

/**
* An event that is emitted when a [text document](#TextDocument) is disposed.
*
* To add an event listener when a visible text document is closed, use the [TextEditor](#TextEditor) events in the
* [window](#_window) namespace. Note that this event is not emitted when a [text document]#TextDocument is closed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[text document]#TextDocument that's actually a markup issue. Also, it should better be 'text editor' because that's what users 'visually close' (pressing the X).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it to:
not emitted when a [TextEditor](#TextEditor) is closed and the document remains open

@jrieken
Copy link
Member

jrieken commented Jan 9, 2018

lgtm. thanks

@jrieken jrieken merged commit f277f7e into microsoft:master Jan 9, 2018
@jrieken jrieken added this to the January 2018 milestone Jan 9, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants